Integrand size = 21, antiderivative size = 219 \[ \int \frac {\csc ^6(c+d x)}{(a+b \tan (c+d x))^2} \, dx=-\frac {\left (a^2+b^2\right ) \left (a^2+5 b^2\right ) \cot (c+d x)}{a^6 d}+\frac {2 b \left (a^2+b^2\right ) \cot ^2(c+d x)}{a^5 d}-\frac {\left (2 a^2+3 b^2\right ) \cot ^3(c+d x)}{3 a^4 d}+\frac {b \cot ^4(c+d x)}{2 a^3 d}-\frac {\cot ^5(c+d x)}{5 a^2 d}-\frac {2 b \left (a^2+b^2\right ) \left (a^2+3 b^2\right ) \log (\tan (c+d x))}{a^7 d}+\frac {2 b \left (a^2+b^2\right ) \left (a^2+3 b^2\right ) \log (a+b \tan (c+d x))}{a^7 d}-\frac {b \left (a^2+b^2\right )^2}{a^6 d (a+b \tan (c+d x))} \]
[Out]
Time = 0.24 (sec) , antiderivative size = 219, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {3597, 908} \[ \int \frac {\csc ^6(c+d x)}{(a+b \tan (c+d x))^2} \, dx=\frac {b \cot ^4(c+d x)}{2 a^3 d}-\frac {\cot ^5(c+d x)}{5 a^2 d}-\frac {2 b \left (a^2+b^2\right ) \left (a^2+3 b^2\right ) \log (\tan (c+d x))}{a^7 d}+\frac {2 b \left (a^2+b^2\right ) \left (a^2+3 b^2\right ) \log (a+b \tan (c+d x))}{a^7 d}-\frac {b \left (a^2+b^2\right )^2}{a^6 d (a+b \tan (c+d x))}-\frac {\left (a^2+b^2\right ) \left (a^2+5 b^2\right ) \cot (c+d x)}{a^6 d}+\frac {2 b \left (a^2+b^2\right ) \cot ^2(c+d x)}{a^5 d}-\frac {\left (2 a^2+3 b^2\right ) \cot ^3(c+d x)}{3 a^4 d} \]
[In]
[Out]
Rule 908
Rule 3597
Rubi steps \begin{align*} \text {integral}& = \frac {b \text {Subst}\left (\int \frac {\left (b^2+x^2\right )^2}{x^6 (a+x)^2} \, dx,x,b \tan (c+d x)\right )}{d} \\ & = \frac {b \text {Subst}\left (\int \left (\frac {b^4}{a^2 x^6}-\frac {2 b^4}{a^3 x^5}+\frac {2 a^2 b^2+3 b^4}{a^4 x^4}-\frac {4 b^2 \left (a^2+b^2\right )}{a^5 x^3}+\frac {a^4+6 a^2 b^2+5 b^4}{a^6 x^2}-\frac {2 \left (a^4+4 a^2 b^2+3 b^4\right )}{a^7 x}+\frac {\left (a^2+b^2\right )^2}{a^6 (a+x)^2}+\frac {2 \left (a^4+4 a^2 b^2+3 b^4\right )}{a^7 (a+x)}\right ) \, dx,x,b \tan (c+d x)\right )}{d} \\ & = -\frac {\left (a^2+b^2\right ) \left (a^2+5 b^2\right ) \cot (c+d x)}{a^6 d}+\frac {2 b \left (a^2+b^2\right ) \cot ^2(c+d x)}{a^5 d}-\frac {\left (2 a^2+3 b^2\right ) \cot ^3(c+d x)}{3 a^4 d}+\frac {b \cot ^4(c+d x)}{2 a^3 d}-\frac {\cot ^5(c+d x)}{5 a^2 d}-\frac {2 b \left (a^2+b^2\right ) \left (a^2+3 b^2\right ) \log (\tan (c+d x))}{a^7 d}+\frac {2 b \left (a^2+b^2\right ) \left (a^2+3 b^2\right ) \log (a+b \tan (c+d x))}{a^7 d}-\frac {b \left (a^2+b^2\right )^2}{a^6 d (a+b \tan (c+d x))} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(589\) vs. \(2(219)=438\).
Time = 7.71 (sec) , antiderivative size = 589, normalized size of antiderivative = 2.69 \[ \int \frac {\csc ^6(c+d x)}{(a+b \tan (c+d x))^2} \, dx=-\frac {\csc ^5(c+d x) \sec (c+d x) (a \cos (c+d x)+b \sin (c+d x))^2}{5 a^2 d (a+b \tan (c+d x))^2}+\frac {\left (-8 a^4 \cos (c+d x)-75 a^2 b^2 \cos (c+d x)-75 b^4 \cos (c+d x)\right ) \csc (c+d x) \sec ^2(c+d x) (a \cos (c+d x)+b \sin (c+d x))^2}{15 a^6 d (a+b \tan (c+d x))^2}+\frac {b \left (a^2+2 b^2\right ) \csc ^2(c+d x) \sec ^2(c+d x) (a \cos (c+d x)+b \sin (c+d x))^2}{a^5 d (a+b \tan (c+d x))^2}+\frac {\left (-4 a^2 \cos (c+d x)-15 b^2 \cos (c+d x)\right ) \csc ^3(c+d x) \sec ^2(c+d x) (a \cos (c+d x)+b \sin (c+d x))^2}{15 a^4 d (a+b \tan (c+d x))^2}+\frac {b \csc ^4(c+d x) \sec ^2(c+d x) (a \cos (c+d x)+b \sin (c+d x))^2}{2 a^3 d (a+b \tan (c+d x))^2}-\frac {2 \left (a^4 b+4 a^2 b^3+3 b^5\right ) \log (\sin (c+d x)) \sec ^2(c+d x) (a \cos (c+d x)+b \sin (c+d x))^2}{a^7 d (a+b \tan (c+d x))^2}+\frac {2 \left (a^4 b+4 a^2 b^3+3 b^5\right ) \log (a \cos (c+d x)+b \sin (c+d x)) \sec ^2(c+d x) (a \cos (c+d x)+b \sin (c+d x))^2}{a^7 d (a+b \tan (c+d x))^2}+\frac {\sec ^2(c+d x) (a \cos (c+d x)+b \sin (c+d x)) \left (a^4 b^2 \sin (c+d x)+2 a^2 b^4 \sin (c+d x)+b^6 \sin (c+d x)\right )}{a^7 d (a+b \tan (c+d x))^2} \]
[In]
[Out]
Time = 2.48 (sec) , antiderivative size = 205, normalized size of antiderivative = 0.94
method | result | size |
derivativedivides | \(\frac {-\frac {1}{5 a^{2} \tan \left (d x +c \right )^{5}}-\frac {2 a^{2}+3 b^{2}}{3 a^{4} \tan \left (d x +c \right )^{3}}-\frac {a^{4}+6 a^{2} b^{2}+5 b^{4}}{a^{6} \tan \left (d x +c \right )}+\frac {b}{2 a^{3} \tan \left (d x +c \right )^{4}}+\frac {2 b \left (a^{2}+b^{2}\right )}{a^{5} \tan \left (d x +c \right )^{2}}-\frac {2 b \left (a^{4}+4 a^{2} b^{2}+3 b^{4}\right ) \ln \left (\tan \left (d x +c \right )\right )}{a^{7}}-\frac {\left (a^{4}+2 a^{2} b^{2}+b^{4}\right ) b}{a^{6} \left (a +b \tan \left (d x +c \right )\right )}+\frac {2 b \left (a^{4}+4 a^{2} b^{2}+3 b^{4}\right ) \ln \left (a +b \tan \left (d x +c \right )\right )}{a^{7}}}{d}\) | \(205\) |
default | \(\frac {-\frac {1}{5 a^{2} \tan \left (d x +c \right )^{5}}-\frac {2 a^{2}+3 b^{2}}{3 a^{4} \tan \left (d x +c \right )^{3}}-\frac {a^{4}+6 a^{2} b^{2}+5 b^{4}}{a^{6} \tan \left (d x +c \right )}+\frac {b}{2 a^{3} \tan \left (d x +c \right )^{4}}+\frac {2 b \left (a^{2}+b^{2}\right )}{a^{5} \tan \left (d x +c \right )^{2}}-\frac {2 b \left (a^{4}+4 a^{2} b^{2}+3 b^{4}\right ) \ln \left (\tan \left (d x +c \right )\right )}{a^{7}}-\frac {\left (a^{4}+2 a^{2} b^{2}+b^{4}\right ) b}{a^{6} \left (a +b \tan \left (d x +c \right )\right )}+\frac {2 b \left (a^{4}+4 a^{2} b^{2}+3 b^{4}\right ) \ln \left (a +b \tan \left (d x +c \right )\right )}{a^{7}}}{d}\) | \(205\) |
risch | \(-\frac {4 i \left (-45 a^{2} b^{3}+4 i a^{5}-45 b^{5}-4 a^{4} b +45 i a \,b^{4} {\mathrm e}^{8 i \left (d x +c \right )}-120 i a^{3} b^{2} {\mathrm e}^{6 i \left (d x +c \right )}-180 i a^{3} b^{2} {\mathrm e}^{2 i \left (d x +c \right )}-180 i a \,b^{4} {\mathrm e}^{2 i \left (d x +c \right )}-180 i a \,b^{4} {\mathrm e}^{6 i \left (d x +c \right )}+240 i a^{3} b^{2} {\mathrm e}^{4 i \left (d x +c \right )}+15 i a^{3} b^{2} {\mathrm e}^{8 i \left (d x +c \right )}+270 i a \,b^{4} {\mathrm e}^{4 i \left (d x +c \right )}+60 a^{2} b^{3} {\mathrm e}^{10 i \left (d x +c \right )}+40 a^{4} b \,{\mathrm e}^{6 i \left (d x +c \right )}-255 a^{2} b^{3} {\mathrm e}^{8 i \left (d x +c \right )}+210 a^{2} b^{3} {\mathrm e}^{2 i \left (d x +c \right )}+45 i a^{3} b^{2}+45 i a \,b^{4}+20 i a^{5} {\mathrm e}^{4 i \left (d x +c \right )}-60 a^{4} b \,{\mathrm e}^{8 i \left (d x +c \right )}+40 i a^{5} {\mathrm e}^{6 i \left (d x +c \right )}-16 i a^{5} {\mathrm e}^{2 i \left (d x +c \right )}+450 a^{2} b^{3} {\mathrm e}^{6 i \left (d x +c \right )}-420 a^{2} b^{3} {\mathrm e}^{4 i \left (d x +c \right )}-225 b^{5} {\mathrm e}^{8 i \left (d x +c \right )}+45 b^{5} {\mathrm e}^{10 i \left (d x +c \right )}+450 b^{5} {\mathrm e}^{6 i \left (d x +c \right )}+225 b^{5} {\mathrm e}^{2 i \left (d x +c \right )}-450 b^{5} {\mathrm e}^{4 i \left (d x +c \right )}+9 a^{4} b \,{\mathrm e}^{2 i \left (d x +c \right )}+15 a^{4} b \,{\mathrm e}^{10 i \left (d x +c \right )}\right )}{15 \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{5} \left (b \,{\mathrm e}^{2 i \left (d x +c \right )}+i a \,{\mathrm e}^{2 i \left (d x +c \right )}-b +i a \right ) a^{6} d}+\frac {2 b \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-\frac {i b +a}{i b -a}\right )}{a^{3} d}+\frac {8 b^{3} \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-\frac {i b +a}{i b -a}\right )}{a^{5} d}+\frac {6 b^{5} \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-\frac {i b +a}{i b -a}\right )}{a^{7} d}-\frac {2 b \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )}{a^{3} d}-\frac {8 b^{3} \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )}{a^{5} d}-\frac {6 b^{5} \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )}{a^{7} d}\) | \(681\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 787 vs. \(2 (213) = 426\).
Time = 0.32 (sec) , antiderivative size = 787, normalized size of antiderivative = 3.59 \[ \int \frac {\csc ^6(c+d x)}{(a+b \tan (c+d x))^2} \, dx=\frac {4 \, {\left (4 \, a^{6} + 45 \, a^{4} b^{2} + 45 \, a^{2} b^{4}\right )} \cos \left (d x + c\right )^{6} - 75 \, a^{4} b^{2} - 90 \, a^{2} b^{4} - 10 \, {\left (4 \, a^{6} + 45 \, a^{4} b^{2} + 45 \, a^{2} b^{4}\right )} \cos \left (d x + c\right )^{4} + 15 \, {\left (2 \, a^{6} + 23 \, a^{4} b^{2} + 24 \, a^{2} b^{4}\right )} \cos \left (d x + c\right )^{2} + 30 \, {\left ({\left (a^{4} b^{2} + 4 \, a^{2} b^{4} + 3 \, b^{6}\right )} \cos \left (d x + c\right )^{6} - a^{4} b^{2} - 4 \, a^{2} b^{4} - 3 \, b^{6} - 3 \, {\left (a^{4} b^{2} + 4 \, a^{2} b^{4} + 3 \, b^{6}\right )} \cos \left (d x + c\right )^{4} + 3 \, {\left (a^{4} b^{2} + 4 \, a^{2} b^{4} + 3 \, b^{6}\right )} \cos \left (d x + c\right )^{2} - {\left ({\left (a^{5} b + 4 \, a^{3} b^{3} + 3 \, a b^{5}\right )} \cos \left (d x + c\right )^{5} - 2 \, {\left (a^{5} b + 4 \, a^{3} b^{3} + 3 \, a b^{5}\right )} \cos \left (d x + c\right )^{3} + {\left (a^{5} b + 4 \, a^{3} b^{3} + 3 \, a b^{5}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )\right )} \log \left (2 \, a b \cos \left (d x + c\right ) \sin \left (d x + c\right ) + {\left (a^{2} - b^{2}\right )} \cos \left (d x + c\right )^{2} + b^{2}\right ) - 30 \, {\left ({\left (a^{4} b^{2} + 4 \, a^{2} b^{4} + 3 \, b^{6}\right )} \cos \left (d x + c\right )^{6} - a^{4} b^{2} - 4 \, a^{2} b^{4} - 3 \, b^{6} - 3 \, {\left (a^{4} b^{2} + 4 \, a^{2} b^{4} + 3 \, b^{6}\right )} \cos \left (d x + c\right )^{4} + 3 \, {\left (a^{4} b^{2} + 4 \, a^{2} b^{4} + 3 \, b^{6}\right )} \cos \left (d x + c\right )^{2} - {\left ({\left (a^{5} b + 4 \, a^{3} b^{3} + 3 \, a b^{5}\right )} \cos \left (d x + c\right )^{5} - 2 \, {\left (a^{5} b + 4 \, a^{3} b^{3} + 3 \, a b^{5}\right )} \cos \left (d x + c\right )^{3} + {\left (a^{5} b + 4 \, a^{3} b^{3} + 3 \, a b^{5}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )\right )} \log \left (-\frac {1}{4} \, \cos \left (d x + c\right )^{2} + \frac {1}{4}\right ) + {\left (4 \, {\left (4 \, a^{5} b + 45 \, a^{3} b^{3} + 45 \, a b^{5}\right )} \cos \left (d x + c\right )^{5} - 10 \, {\left (a^{5} b + 33 \, a^{3} b^{3} + 36 \, a b^{5}\right )} \cos \left (d x + c\right )^{3} - 15 \, {\left (a^{5} b - 10 \, a^{3} b^{3} - 12 \, a b^{5}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{30 \, {\left (a^{7} b d \cos \left (d x + c\right )^{6} - 3 \, a^{7} b d \cos \left (d x + c\right )^{4} + 3 \, a^{7} b d \cos \left (d x + c\right )^{2} - a^{7} b d - {\left (a^{8} d \cos \left (d x + c\right )^{5} - 2 \, a^{8} d \cos \left (d x + c\right )^{3} + a^{8} d \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )\right )}} \]
[In]
[Out]
\[ \int \frac {\csc ^6(c+d x)}{(a+b \tan (c+d x))^2} \, dx=\int \frac {\csc ^{6}{\left (c + d x \right )}}{\left (a + b \tan {\left (c + d x \right )}\right )^{2}}\, dx \]
[In]
[Out]
none
Time = 0.22 (sec) , antiderivative size = 225, normalized size of antiderivative = 1.03 \[ \int \frac {\csc ^6(c+d x)}{(a+b \tan (c+d x))^2} \, dx=\frac {\frac {9 \, a^{4} b \tan \left (d x + c\right ) - 60 \, {\left (a^{4} b + 4 \, a^{2} b^{3} + 3 \, b^{5}\right )} \tan \left (d x + c\right )^{5} - 6 \, a^{5} - 30 \, {\left (a^{5} + 4 \, a^{3} b^{2} + 3 \, a b^{4}\right )} \tan \left (d x + c\right )^{4} + 10 \, {\left (4 \, a^{4} b + 3 \, a^{2} b^{3}\right )} \tan \left (d x + c\right )^{3} - 5 \, {\left (4 \, a^{5} + 3 \, a^{3} b^{2}\right )} \tan \left (d x + c\right )^{2}}{a^{6} b \tan \left (d x + c\right )^{6} + a^{7} \tan \left (d x + c\right )^{5}} + \frac {60 \, {\left (a^{4} b + 4 \, a^{2} b^{3} + 3 \, b^{5}\right )} \log \left (b \tan \left (d x + c\right ) + a\right )}{a^{7}} - \frac {60 \, {\left (a^{4} b + 4 \, a^{2} b^{3} + 3 \, b^{5}\right )} \log \left (\tan \left (d x + c\right )\right )}{a^{7}}}{30 \, d} \]
[In]
[Out]
none
Time = 0.49 (sec) , antiderivative size = 332, normalized size of antiderivative = 1.52 \[ \int \frac {\csc ^6(c+d x)}{(a+b \tan (c+d x))^2} \, dx=-\frac {\frac {60 \, {\left (a^{4} b + 4 \, a^{2} b^{3} + 3 \, b^{5}\right )} \log \left ({\left | \tan \left (d x + c\right ) \right |}\right )}{a^{7}} - \frac {60 \, {\left (a^{4} b^{2} + 4 \, a^{2} b^{4} + 3 \, b^{6}\right )} \log \left ({\left | b \tan \left (d x + c\right ) + a \right |}\right )}{a^{7} b} + \frac {30 \, {\left (2 \, a^{4} b^{2} \tan \left (d x + c\right ) + 8 \, a^{2} b^{4} \tan \left (d x + c\right ) + 6 \, b^{6} \tan \left (d x + c\right ) + 3 \, a^{5} b + 10 \, a^{3} b^{3} + 7 \, a b^{5}\right )}}{{\left (b \tan \left (d x + c\right ) + a\right )} a^{7}} - \frac {137 \, a^{4} b \tan \left (d x + c\right )^{5} + 548 \, a^{2} b^{3} \tan \left (d x + c\right )^{5} + 411 \, b^{5} \tan \left (d x + c\right )^{5} - 30 \, a^{5} \tan \left (d x + c\right )^{4} - 180 \, a^{3} b^{2} \tan \left (d x + c\right )^{4} - 150 \, a b^{4} \tan \left (d x + c\right )^{4} + 60 \, a^{4} b \tan \left (d x + c\right )^{3} + 60 \, a^{2} b^{3} \tan \left (d x + c\right )^{3} - 20 \, a^{5} \tan \left (d x + c\right )^{2} - 30 \, a^{3} b^{2} \tan \left (d x + c\right )^{2} + 15 \, a^{4} b \tan \left (d x + c\right ) - 6 \, a^{5}}{a^{7} \tan \left (d x + c\right )^{5}}}{30 \, d} \]
[In]
[Out]
Time = 5.99 (sec) , antiderivative size = 237, normalized size of antiderivative = 1.08 \[ \int \frac {\csc ^6(c+d x)}{(a+b \tan (c+d x))^2} \, dx=\frac {4\,b\,\mathrm {atanh}\left (\frac {2\,b\,\left (a^2+3\,b^2\right )\,\left (a^2+b^2\right )\,\left (a+2\,b\,\mathrm {tan}\left (c+d\,x\right )\right )}{a\,\left (2\,a^4\,b+8\,a^2\,b^3+6\,b^5\right )}\right )\,\left (a^2+3\,b^2\right )\,\left (a^2+b^2\right )}{a^7\,d}-\frac {\frac {1}{5\,a}+\frac {{\mathrm {tan}\left (c+d\,x\right )}^4\,\left (a^4+4\,a^2\,b^2+3\,b^4\right )}{a^5}+\frac {{\mathrm {tan}\left (c+d\,x\right )}^2\,\left (4\,a^2+3\,b^2\right )}{6\,a^3}-\frac {3\,b\,\mathrm {tan}\left (c+d\,x\right )}{10\,a^2}+\frac {2\,b\,{\mathrm {tan}\left (c+d\,x\right )}^5\,\left (a^4+4\,a^2\,b^2+3\,b^4\right )}{a^6}-\frac {b\,{\mathrm {tan}\left (c+d\,x\right )}^3\,\left (4\,a^2+3\,b^2\right )}{3\,a^4}}{d\,\left (b\,{\mathrm {tan}\left (c+d\,x\right )}^6+a\,{\mathrm {tan}\left (c+d\,x\right )}^5\right )} \]
[In]
[Out]